home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / mh060191.zip / TRAPDOOR.BAT < prev    next >
DOS Batch File  |  1991-06-01  |  835b  |  44 lines

  1. echo off
  2. rem mhjump.bat
  3. rem
  4. rem %0 = trapdoor.bat, %1 = port#, %2 = baud, %3 = first name, %4 = last name,
  5. rem %5 = security, %6 = ansi(Y/N), %7 = start directory, %8 = ONLINE or LOCAL
  6. rem mark
  7. if x%8 == xLOCAL goto doslevel
  8. if x%1 == x1 goto port1
  9. if x%1 == x2 goto port2
  10. if x%1 == x3 goto port3
  11. if x%1 == x4 goto port4
  12. goto error
  13. :port1
  14. watchdg1 on > nul
  15. ctty com1
  16. goto doslevel
  17. :port2
  18. watchdg2 on > nul
  19. ctty com2
  20. goto doslevel
  21. :port3
  22. watchdg3 on > nul
  23. ctty com3
  24. goto doslevel
  25. :port4
  26. watchdg4 on > nul
  27. ctty com4
  28. :doslevel
  29. command
  30. ctty con
  31. if %8 == LOCAL goto exit
  32. if x%1 == x1 watchdg1 off > nul
  33. if x%1 == x2 watchdg2 off > nul
  34. if x%1 == x3 watchdg3 off > nul
  35. if x%1 == x4 watchdg4 off > nul
  36. goto exit
  37. :error
  38. echo 
  39. echo * MHJUMP.BAT must be called by MAXIHOST *
  40. echo 
  41. :exit
  42. rem release
  43.  
  44.